import request from '@/utils/request'

// 查询小分切列表
export function listSmallSlitting(query) {
  return request({
    url: '/mes/fb/smallSlitting/list',
    method: 'get',
    params: query
  })
}

// 查询小分切详细
export function getSmallSlitting(recordId) {
  return request({
    url: '/mes/fb/smallSlitting/' + recordId,
    method: 'get'
  })
}

// 新增小分切
export function addSmallSlitting(data) {
  return request({
    url: '/mes/fb/smallSlitting',
    method: 'post',
    data: data
  })
}

// 修改小分切
export function updateSmallSlitting(data) {
  return request({
    url: '/mes/fb/smallSlitting',
    method: 'put',
    data: data
  })
}

// 删除小分切
export function delSmallSlitting(recordId) {
  return request({
    url: '/mes/fb/smallSlitting/' + recordId,
    method: 'delete'
  })
}
